<?php
define('PAGE_PER_NO',9); 

function getPagination($count,$page_per=''){
	if($page_per){	
      $paginationCount= floor($count / $page_per);
      $paginationModCount= $count % $page_per;
	}else{
	  $paginationCount= floor($count / PAGE_PER_NO);
      $paginationModCount= $count % PAGE_PER_NO;	
	}
      if(!empty($paginationModCount)){
               $paginationCount++;
      }
      return $paginationCount;
}

function social_icons($url){
 
$str = '<p>
<a class="btn s rounded facebook" HREF="javascript:void(0)"onclick="window.open(\'http://www.facebook.com/share.php?u='.$url.'\',\'linkname\',\'height=800, width=960,scrollbars=yes\')">Facebook</a>

<a class="btn s rounded twitter" HREF="javascript:void(0)"onclick="window.open(\'https://twitter.com/intent/tweet?url='.$url.'\',\'linkname\',\'height=800, width=960,scrollbars=yes\')">Twitter</a>

<a class="btn s rounded pinterest" HREF="javascript:void(0)"
onclick="window.open(\'http://pinterest.com/elevate/\',\'linkname\',\'height=800, width=960,scrollbars=yes\')">Pinterest</a>

<a class="btn s rounded plus" HREF="javascript:void(0)"onclick="window.open(\'https://plus.google.com/share?url='.$url.'\',\'linkname\',\'height=800, width=960,scrollbars=yes\')">Google Plus</a>

<a class="btn s rounded linkedin" HREF="javascript:void(0)"
onclick="window.open(\'http://www.linkedin.com/shareArticle?url='.$url.'\',\'linkname\',\'height=800, width=960,scrollbars=yes\')">Linkedin</a>
</p>';

return $str;
}